package com.example.service.impl;

import com.example.mapper.WxbMemeberMapper;
import com.example.model.WxbMemeber;
import com.example.service.WxbMemeberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tk.mybatis.mapper.entity.Example;

@Service
@Transactional
public class WxbMemeberServiceImpl implements WxbMemeberService {

    @Autowired
    private WxbMemeberMapper wxbMemeberMapper;
    @Override
    public WxbMemeber findByAccount(String account) {
        Example example = new Example(WxbMemeber.class);
        example.and().andEqualTo("account",account);
        WxbMemeber wxbMemeber = wxbMemeberMapper.selectOneByExample(example);


        return wxbMemeber;
    }
}
